/**
 * Constructor
 */
function ToastViewer() {
};

/**
 * Show Toast Message
 *
 * @param msg           message to be shown
 */
ToastViewer.prototype.show = function(msg) {
    cordova.exec(null, null, "ToastViewer", "show", [msg]);
};

/**
 * Load ToastViewer
 */

if(!window.plugins) {
    window.plugins = {};
}
if (!window.plugins.toastViewer) {
    window.plugins.toastViewer = new ToastViewer();
}